<template>
	<view>
		<u-navbar back-text="返回" :title="title" :border-bottom="false" :back-text-style="{color: 'rgba(16,142,233,1)' }"
		 back-icon-color="#108EE9">
		</u-navbar>
		<view class="select-box">
			<view class="item-select">
				<view class="select-click">
					距离<image src="../../../static/images/home/selecticon.png" mode=""></image>
				</view>
			</view>
			<view class="item-select">
				<view class="select-click select-unclick">
					销量<image src="../../../static/images/home/selecticon.png" mode=""></image>
				</view>
			</view>
			<view class="item-select">
				<view class="select-click select-unclick">
					评分<image src="../../../static/images/home/selecticon.png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="content">
			<block v-for="(item,index) in list" :key="index">
				<company-item :item="item"></company-item>
			</block>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				title:'其他材料',
				list: [{
					name: '华新建材门市有限公司'
				}, {
					name: '华男建材门市有限公司1'
				},{
					name: '华男建材门市有限公司2'
				},{
					name: '华男建材门市有限公司3'
				},{
					name: '华男建材门市有限公司4'
				},{
					name: '华男建材门市有限公司5'
				},{
					name: '华男建材门市有限公司6'
				},]
			}
		},
		onLoad(opt) {
			this.title = opt.title;
		},
		methods:{
			
		}
	}
</script>

<style lang="scss" scoped>
	.select-box {
		width: 100%;
		display: flex;
		justify-content: space-between;
		border-bottom: 1rpx solid rgba(223, 223, 223, 1);
	
		.item-select {
			width: 250rpx;
			text-align: center;
			line-height: 90rpx;
	
			.select-click {
				font-size: 26rpx;
				font-weight: bold;
				color: rgba(51, 51, 51, 1);
				opacity: 1;
	
				image {
					width: 24rpx;
					height: 12rpx;
					margin-left: 14rpx;
					margin-bottom: 4rpx;
				}
			}
	
			.select-unclick {
				font-size: 26rpx;
				font-weight: normal;
				color: rgba(51, 51, 51, 1);
				opacity: 1;
			}
		}
	}
	.content{
		padding: 0 30rpx;
		width: 100%;
		box-sizing: border-box;
	}
</style>
